package com.example.demo.design.strategy_pattern;

/**
 * @Author: liull
 * @Description: vip打折方式：积累积分，并半价
 * @Date: Created in 17:59 2020/11/18
 * @Modified By:
 */
public class VipDiscount implements Discount {
    @Override
    public double calculate(double price) {
        System.out.println("VIP票：");
        System.out.println("VIP票积分+10");
        return price * 0.5;
    }
}
